package com.sparrow.gate.iohander;

import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IdleStatus;
import org.apache.mina.core.session.IoSession;
import org.springframework.stereotype.Component;

@Component
public class MinaClientIoHandler extends IoHandlerAdapter
{
    @Override
    public void messageReceived(IoSession session, Object message) throws Exception
    {
        System.out.println("MinaClientIoHandler receive :" + message.toString());
        super.messageReceived(session, message);
    }

    @Override
    public void sessionIdle(IoSession session, IdleStatus status) throws Exception
    {
        super.sessionIdle(session, status);
    }
}
